import Vue from 'vue'
import Router from 'vue-router'


import admin from "../pages/main/main.vue"
// 登录成功页面
import login_succ from "../pages/login/login_succ.vue"
import nomodel from "../pages/login/nomodel.vue"
//=======================商品管理的引入===========================//
import goods_manage from "../pages/commodity/goods_manage.vue"
//================================商品活动========================================//
import addActive from "../pages/active/add/add_active.vue"
import allActive from "../pages/active/all_active/all_active.vue"
// 推荐商品管理
import recommend_commodity from "../pages/commodity/recommend_commodity.vue"
//================================广告管理========================================//
import add_advert from "../pages/advert/advert/add_advert.vue"
import all_advert from "../pages/advert/all_advert/all_advert.vue"
//================================审核管理========================================//
import applySaleman from "../pages/auditing/apply_saleman/apply_saleman.vue"
import applyManager from "../pages/auditing/apply_manager/apply_manager.vue"
import applyCompany from "../pages/auditing/apply_company/apply_company.vue"
import applyGetCash from "../pages/auditing/apply_get_cash/apply_get_cash.vue"
import applyBackGoods from "../pages/auditing/apply_back_goods/apply_back_goods.vue"
import applyDianbi from "../pages/auditing/apply_dianbi/apply_dianbi.vue"
import applySpreadCompany from "../pages/auditing/apply_spread_company/apply_spread_company.vue"
import applyReturnMoney from "../pages/auditing/apply_return_money/apply_return_money.vue"
import checkGoods from "../pages/auditing/apply_goods/check_goods.vue"
//================================订单管理========================================//
import order_list from "../pages/order/order_list.vue"
import order_list_self from "../pages/order/order_list_self.vue"
import order_list_noself from "../pages/order/order_list_noself.vue"
//================================反馈管理========================================//
import feedback from "../pages/feedback/feedback_list.vue"
//================================权限管理========================================//
import permissionAdd from "../pages/permission/permission_add.vue"			//添加权限
import permissionList from "../pages/permission/permission_list.vue"		//权限列表
//================================供应商========================================//
import add_supplier from "../pages/supplier/add_supplier.vue"			//添加供应商
import supplier_list from "../pages/supplier/supplier_list.vue"			//供应商列表
import supplier_check from "../pages/supplier/supplier_check.vue" //供应商结算申请列表
//================================登录界面========================================//
import cash_manage from "../pages/finance/cash_manage.vue"	// 现金提现审核
import dianyuan_manage from "../pages/finance/dianyuan_manage.vue"	// 点元提现审核
import login from "../pages/login/login.vue"	//登录界面

import dianyuan_exchange from "../pages/member/dianyuan_exchange.vue"	//点元转化
import company_manage from "../pages/company/company_manage.vue"	//商户管理
import company_bankcard from "../pages/company/company_bankcard.vue" // 商户银行卡管理

import seckill_list from "../pages/commodity/seckill_list.vue" // 秒杀列表

import member_list from "../pages/member/member_list.vue" // 秒杀列表




Vue.use(Router)

export default new Router({
//	mode: "history",
	routes: [{
			path: '/admin',
			redirect: "/admin/login_succ"
		},
		{
			path: "/admin",
			component: admin,
			children: [{
				path: "login_succ",
				component: login_succ
			},{
				path: "nomodel",
				component: nomodel
			},{
				path: "goods_manage",
				component: goods_manage
			},{
				path: "add_active",
				name: "add_active",
				component: addActive
			},{
				path: "all_active",
				component: allActive
			},{
				path: "add_advert",
				name: "add_advert",
				component: add_advert
			},{
				path: "all_advert",
				component: all_advert
			},{
				path: "apply_spreader",
				component: applySaleman
			},{
				path: "apply_manager",
				component: applyManager
			},{
				path: "feedback_list",
				component: feedback
			},{
				path: "apply_get_cash",
				component: applyGetCash
			},{
				path: "apply_back_goods",
				component: applyBackGoods
			},{
				path: "apply_dianbi",
				component: applyDianbi
			},{
				path: "apply_company",
				component: applyCompany
			},{
				path: "apply_spread_company",
				component: applySpreadCompany
			},{
				path: "check_goods",
				component: checkGoods
			},{
				path: "apply_return_money",
				component: applyReturnMoney
			},{
				path: "permission_add",
				component: permissionAdd
			},{
				path: "permission_list",
				component: permissionList
			},{
				path: "order_list",
				component: order_list
			},{
				path: "order_list_self",
				component: order_list_self
			},{
				path: "order_list_noself",
				component: order_list_noself
			},{
				path: "add_supplier",
				name: "add_supplier",
				component: add_supplier
			},{
				path: "supplier_list",
				component: supplier_list
			},{
				path: "supplier_check",
				component: supplier_check
			},{
				path: "cash_manage",
				component: cash_manage
			},{
				path: "dianyuan_manage",
				component: dianyuan_manage
			}, {
				path: "recommend_commodity",
				component: recommend_commodity
			}, {
				path: "dianyuan_exchange",
				component: dianyuan_exchange
			}, {
				path: "company_manage",
				component: company_manage
			}, {
				path: "company_bankcard",
				component: company_bankcard
			}, {
				path: "seckill_list",
				component: seckill_list
			}, {
				path: "member_list",
				component: member_list
			}]
		}
	]
})